package com.clever.mall.mapper;

import com.clever.mall.entity.Consignment;
import org.apache.ibatis.annotations.Param;

/**
 * @author ChenWang
 * @interfaceName ConsignmentMapper
 * @date 2020/11/11 17:25
 * @since JDK 1.8
 */
public interface ConsignmentMapper {
    /**
     * 添加对应的订单信息
     * @param consignment   指定的订单
     * @return              影响的行数
     */
    int insert(@Param("consignment") Consignment consignment);

    /**
     * 根据指定的id查看对应的订单信息
     * @param id            指定的id
     * @return              订单信息
     */
    Consignment selectConsignmentById(@Param("id") Integer id);
}
